<template>
  <div class="container">
     <div class="left">
      <el-input v-model="search" placeholder="请输入内容"></el-input>
       <el-button type="primary" @click="searchone">搜索</el-button>
     </div>
     <div class="right">
      <el-button type="primary" @click="getexcel">导出excel</el-button>
       <el-button type="success" @click="openDialogfun">添加</el-button>
       <el-button type="warning" @click="deletemore">批量删除</el-button>
     </div>
  </div>
</template>

<script>
import eventBus from "../../../untial/evevtBus";
export default {
data() {
    return {
      search: ''
    }
  },
  methods:{
    searchone(){
      this.$emit('searchfunparent',this.search)
    },

    // 删除多个
    deletemore(){
      eventBus.$emit('deletemore')
    },

// 打开添加框
openDialogfun(){
  this.$emit('parenntopentdialog')
},
getexcel(){
  this.$emit('exportexcel')
}





  }
}
</script>

<style lang="less" scoped>
.container{
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  .left{
    display: flex;
    align-items: center;
  }
}
</style>